Skip to content

Agents: document MCP client and server elicitation#31974

Merged
mattzcarey merged 12 commits into
productionfrom
docs/agents-url-elicitation
Jul 13, 2026
Merged

Agents: document MCP client and server elicitation#31974
mattzcarey merged 12 commits into
productionfrom
docs/agents-url-elicitation

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents MCP elicitation support in the Agents SDK for the agents@0.17.4 release.

  • explains form and URL modes against the stable MCP 2025-11-25 specification
  • documents configureElicitationHandlers({ form, url }) in onStart() for Agents acting as MCP clients
  • covers capability negotiation, hibernation, response actions, URL consent and security requirements, timeout handling, and forwarding requests to a browser UI
  • expands the server API documentation with correct form-mode and URL-mode elicitInput() examples
  • adds a 2026-07-13 changelog with the MCP interaction flow and upgrade command
  • links the runnable mcp-client and mcp-elicitation examples

The docs intentionally cover the supported Agent client API only. They do not promise a public lower-level MCPClientConnection API.

Verification

  • pnpm run format:core:check
  • pnpm run check
  • full local docs build: 8,655 pages

Documentation checklist

  • Includes a changelog entry dated for the release.
  • Follows the documentation style guide.
  • Uses the stable, versioned MCP specification as the source of truth.

@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Review

✅ No issues found in commit eac97f9.

Code Review

This code review is in beta and may not always be helpful — use your judgment.

No code review issues found.

Conventions

No convention issues found.

Style Guide Review

No style-guide issues found.

Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.
/ignore-review-limit Permanently lifts the 2-review automatic limit for this PR. Future pushes will trigger reviews as normal.
/disable-auto-review Stops automatic reviews from triggering on future pushes to this PR. Codeowners can still run /review or /full-review manually.

@github-actions github-actions Bot added product:changelog product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/m labels Jul 9, 2026
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/changelog/ @cloudflare/pm-changelogs, @cloudflare/product-owners
/src/content/docs/agents/ @irvinebroque, @rita3ko, @elithrar, @thomasgauvin, @threepointone, @whoiskatrin, @cloudflare/product-owners, @cloudflare/ai-agents, @cloudflare/dev-plat-leads

@mattzcarey mattzcarey marked this pull request as draft July 9, 2026 17:02

@irvinebroque irvinebroque left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about taking the mermaid diagram from here and using to convey this flow in changelog?

Image

https://modelcontextprotocol.io/specification/draft/client/elicitation

Stamp so you have it, see comments

Comment thread src/content/changelog/agents/2026-07-09-url-elicitation.mdx Outdated
Comment thread src/content/changelog/agents/2026-07-09-url-elicitation.mdx Outdated
…elog

- New Elicitation section in the McpClient API docs: onElicitRequest,
  handler-driven capability advertisement (form+url with an override,
  form-only without), explicit capability narrowing, and the
  broadcast/respond pattern for forwarding elicitation to a UI
- Cross-link from the server-side elicitInput docs
- Changelog: URL elicitations are in the Agents SDK
@mattzcarey mattzcarey force-pushed the docs/agents-url-elicitation branch from f3529f6 to 31819a0 Compare July 13, 2026 16:53
@mattzcarey mattzcarey changed the title Agents: document MCP client elicitation + url-elicitation changelog Agents: document MCP client and server elicitation Jul 13, 2026
@mattzcarey mattzcarey marked this pull request as ready for review July 13, 2026 16:53
Document form and URL modes against MCP 2025-11-25, correct consent and completion semantics, add server and client implementation guidance, and publish the changelog on the release date.
@mattzcarey mattzcarey force-pushed the docs/agents-url-elicitation branch from 31819a0 to eac97f9 Compare July 13, 2026 16:59
@mattzcarey mattzcarey enabled auto-merge (squash) July 13, 2026 17:07
@mattzcarey mattzcarey merged commit e6d64d0 into production Jul 13, 2026
14 checks passed
@mattzcarey mattzcarey deleted the docs/agents-url-elicitation branch July 13, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. product:changelog size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants